const mongoose = require('mongoose')
const Schema = mongoose.Schema

// Create Schema
const CuisineSchema = new Schema({
  // 菜品类型
  models: {
    type: String,
    required: true
  },
  // 食物做出来的地址
  FoodAddress: {
    type: String,
    required: true
  },
  // 图片
  CuisineImg: {
    type: String
  },
  // 套餐价格
  CuisinePrice: {
    type: String,
    required: true
  },
  //食物生产日期
  date:{
    type: String,
    required: true
  },
  // 判断此套餐收到状态
  CuisineFlag: {
    type: Boolean,
    default: false
  }
})

module.exports = Cuisine = mongoose.model('Cuisine', CuisineSchema)
